﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BuyLocalBonds
{
    public partial class buyconfirmation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            double price = double.Parse((string) Session["price"]);
            double quantity = double.Parse((string)Session["quantity"]);

            CusipTextBox.Text = (string) Session["cusip"];
            RatingTextBox.Text = (string) Session["rating"];
            PriceTextBox.Text = (string) Session["price"];
            QuantityTextBox.Text = (string) Session["quantity"];
            PurchaseAmountTextBox.Text = (price * quantity) + "";
        }

        protected void SearchButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("searchBond.aspx");
        }
    }
}